package com.example.farmrental.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public class RentalOrderDto {
    public Long id;
    public String orderNo;
    public String status;
    public String username;
    public String phone;
    public String address;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime orderTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime endDate;
    public BigDecimal amount;
    public Long setmealId;
    public String setmealName;
    public List<Item> machineryList;

    public static class Item {
        public Long id;
        public Long machineryId;
        public String name;
        public Integer quantity;
        public BigDecimal price;
    }
}
